/**
 * ReportGear(2011)
 */
package com.reportgear.report.model.headerfooter.paintable;

import java.awt.Graphics2D;
import java.awt.geom.Point2D;

import com.reportgear.report.model.headerfooter.HFElement;

/**
 * 页脚页眉绘制接口
 * 
 * @version 1.0 2011-4-23
 * @author <a herf="lexloo@gmail.com">lexloo</a>
 * @since Report 1.0
 */
public interface HFPaintable {
	/**
	 * 
	 * @return 获取位置
	 */
	public Point2D getPaintLocation();

	/**
	 * 设置绘制位置
	 * 
	 * @param location
	 *            绘制位置
	 */
	public void setPaintLocation(Point2D location);

	/**
	 * @return 获取页眉页脚元素
	 */
	public HFElement getHFElement();

	/**
	 * 绘制对象
	 * 
	 * @param g2
	 */
	public void paint(Graphics2D g2);
}
